package com.wyw.design.model.learning.structure.proxy;

/**
 * @Title   购票接口的具体实现类
 * @Description
 * @Author Mr Wu    yewen.wu.china@gmail.com
 * Update History:
 * Author        Time            Content
 */
public class Buyer implements IBuyer{

    private String name; // 模拟当前购票人

    public Buyer(String name) {
        this.name = name;
    }

    @Override
    public void login(String username, String password) {
        System.out.println("用户：" + username + " 使用密码：" + password + " 已登录成功");
    }

    @Override
    public void bugTicket() {
        System.out.println(name + " 正在购票");
    }
}
